package xy.donate.android.entity;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
import androidx.room.TypeConverters;

import java.io.Serializable;
import java.util.List;

import cn.bmob.v3.BmobObject;
import xy.donate.android.db.HandsTypeConverter;
import xy.donate.android.helper.TimeUtils;

@Entity
public class HandsUpEntity extends BmobObject implements Serializable {

    @PrimaryKey
    @NonNull
    private String RecordID;
    private String Name;
    private String Phone;
    private String HelpText;
    private String HardText;
    @TypeConverters(HandsTypeConverter.class)
    private List<String> Images;
    private String RecordTime;
    private String UserID;

    public String getUserID() {
        return UserID;
    }

    public void setUserID(String userID) {
        UserID = userID;
    }

    public String getRecordTime() {
        return RecordTime;
    }

    public void setRecordTime(String recordTime) {
        RecordTime = recordTime;
    }

    public HandsUpEntity() {
        RecordID = "";
        RecordTime = TimeUtils.INSTANCE.getCurTimeString();
        setTableName("Record");
    }

    @NonNull
    public String getRecordID() {
        return RecordID;
    }

    public void setRecordID(@NonNull String recordID) {
        RecordID = recordID;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getPhone() {
        return Phone;
    }

    public void setPhone(String phone) {
        Phone = phone;
    }

    public String getHelpText() {
        return HelpText;
    }

    public void setHelpText(String helpText) {
        HelpText = helpText;
    }

    public String getHardText() {
        return HardText;
    }

    public void setHardText(String hardText) {
        HardText = hardText;
    }

    public List<String> getImages() {
        return Images;
    }

    public void setImages(List<String> images) {
        Images = images;
    }
}
